import request from '@/utils/request'

export function getWebsite() {
  return request({
    url: '/admin/website',
    method: 'get'
  })
}

export function updateWebsite(params) {
  return request({
    url: '/admin/website',
    method: 'put',
    data: params
  })
}

export function getWebInfo() {
  return request({
    url: '/admin/website/about',
    method: 'get'
  })
}

export function updateWebInfo(params) {
  return request({
    url: '/admin/website/about',
    method: 'put',
    data: params
  })
}

export function updatePassword(params) {
  return request({
    url: '/admin/website/password',
    method: 'put',
    data: params
  })
}
